<?php /* Smarty version Smarty-3.1.16, created on 2017-08-28 15:26:28
         compiled from "D:\WORK\DRF\\wap\theme\xth1\\tpls\order.tpl" */ ?>
<?php /*%%SmartyHeaderCode:19952599d3129d424c6-88351647%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4d68569037c6fc00af2b93f325ec166b9d32f96b' => 
    array (
      0 => 'D:\\WORK\\DRF\\\\wap\\theme\\xth1\\\\tpls\\order.tpl',
      1 => 1503904057,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19952599d3129d424c6-88351647',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.16',
  'unifunc' => 'content_599d3129d77138_47302065',
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_599d3129d77138_47302065')) {function content_599d3129d77138_47302065($_smarty_tpl) {?><!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <?php echo $_smarty_tpl->getSubTemplate ("comm_header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

</head>
<body ontouchstart style="background: #ebebeb;">
<div class="container" id="container">
    <div class="page">
        <div class="weui-tab">
            <div class="weui-navbar">
                <div class="weui-navbar__item weui-bar__item_on">
                    <span>报价单</span>
                </div>
                <div class="weui-navbar__item">
                    <span>小样订单</span>
                </div>
                <div class="weui-navbar__item">
                    <span>销售订单</span>
                </div>
            </div>
            <div class="weui-tab__panel">
                <!-- 报价单 -->
                <div id="divCost" class="weui-tab__content" style="display: block">

                </div>
                <!-- 报价单 END -->

                <!-- 小样订单 -->
                <div class="weui-tab__content">
                    <div class="weui-form-preview">
                        <div class="weui-form-preview__bd">
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">项目名称：</span><span class="text-blue">江苏万达广场</span></label>
                                <span class="weui-form-preview__value"><span class="text-gray">要求完成时间：</span>2017-10-05</span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">涂装体系：</span>碧彩石系列、外墙乳胶</label>
                                <span class="weui-form-preview__value"></span>
                            </div>
                            <div class="weui-form-preview__item weui_describe">
                                <label class="weui-form-preview__label"><span class="text-gray">制作内容：<br>及要求</span></label>
                                <p>XXXXXXXXXX碧彩石系列、外墙乳胶碧彩石系列、外墙乳胶碧彩石系列、外墙乳胶碧彩石系列、外墙乳胶</p>
                            </div>
                        </div>
                        <div class="weui-form-preview__ft">
                            状态 : <span class="text-red">已审核，待制作</span>
                            <a class="weui-btn weui-btn_plain-default full-right" href="javascript:">查看详情</a>
                        </div>
                    </div>
                    <div class="weui-form-preview">
                        <div class="weui-form-preview__bd">
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">项目名称：</span><span class="text-blue">江苏万达广场</span></label>
                                <span class="weui-form-preview__value"><span class="text-gray">要求完成时间：</span>2017-10-05</span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">涂装体系：</span>碧彩石系列、外墙乳胶</label>
                                <span class="weui-form-preview__value"></span>
                            </div>
                            <div class="weui-form-preview__item weui_describe">
                                <label class="weui-form-preview__label"><span class="text-gray">制作内容：<br>及要求</span></label>
                                <p>XXXXXXXXXX碧彩石系列、外墙乳胶碧彩石系列、外墙乳胶碧彩石系列、外墙乳胶碧彩石系列、外墙乳胶</p>
                            </div>
                        </div>
                        <div class="weui-form-preview__ft">
                            状态 : <span class="text-red">已审核，待制作</span>
                            <a class="weui-btn weui-btn_plain-default full-right" href="javascript:">查看详情</a>
                        </div>
                    </div>
                    <div class="weui-form-preview">
                        <div class="weui-form-preview__bd">
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">项目名称：</span><span class="text-blue">江苏万达广场</span></label>
                                <span class="weui-form-preview__value"><span class="text-gray">要求完成时间：</span>2017-10-05</span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">涂装体系：</span>碧彩石系列、外墙乳胶</label>
                                <span class="weui-form-preview__value"></span>
                            </div>
                            <div class="weui-form-preview__item weui_describe">
                                <label class="weui-form-preview__label"><span class="text-gray">制作内容：<br>及要求</span></label>
                                <p>XXXXXXXXXX碧彩石系列、外墙乳胶碧彩石系列、外墙乳胶碧彩石系列、外墙乳胶碧彩石系列、外墙乳胶</p>
                            </div>
                        </div>
                        <div class="weui-form-preview__ft">
                            状态 : <span class="text-red">已审核，待制作</span>
                            <a class="weui-btn weui-btn_plain-default full-right" href="javascript:">查看详情</a>
                        </div>
                    </div>
                </div>
                <!-- 小样订单 END -->

                <!-- 销售订单 -->
                <div class="weui-tab__content">
                    <div class="weui-form-preview">
                        <div class="weui-form-preview__bd">
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">项目名称：</span><span class="text-blue">江苏万达广场</span></label>
                                <span class="weui-form-preview__value"><span class="text-gray">业务员：</span>张三</span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">涂装体系：</span>碧彩石系列、外墙乳胶</label>
                                <span class="weui-form-preview__value"></span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">订单时间：</span>2017-08-05 16:28</label>
                                <span class="weui-form-preview__value"><span class="text-gray">预计完成日期：</span>2017-10-05</span>
                            </div>
                        </div>
                        <div class="weui-form-preview__ft">
                            状态 : <span class="text-red">未确认</span>
                            <a class="weui-btn weui-btn_plain-default full-right" href="javascript:">查看详情</a>
                        </div>
                    </div>
                    <div class="weui-form-preview">
                        <div class="weui-form-preview__bd">
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">项目名称：</span><span class="text-blue">江苏万达广场</span></label>
                                <span class="weui-form-preview__value"><span class="text-gray">业务员：</span>张三</span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">涂装体系：</span>碧彩石系列、外墙乳胶</label>
                                <span class="weui-form-preview__value"></span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">订单时间：</span>2017-08-05 16:28</label>
                                <span class="weui-form-preview__value"><span class="text-gray">预计完成日期：</span>2017-10-05</span>
                            </div>
                        </div>
                        <div class="weui-form-preview__ft">
                            状态 : <span class="text-red">未确认</span>
                            <a class="weui-btn weui-btn_plain-default full-right" href="javascript:">查看详情</a>
                        </div>
                    </div>
                    <div class="weui-form-preview">
                        <div class="weui-form-preview__bd">
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">项目名称：</span><span class="text-blue">江苏万达广场</span></label>
                                <span class="weui-form-preview__value"><span class="text-gray">业务员：</span>张三</span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">涂装体系：</span>碧彩石系列、外墙乳胶</label>
                                <span class="weui-form-preview__value"></span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">订单时间：</span>2017-08-05 16:28</label>
                                <span class="weui-form-preview__value"><span class="text-gray">预计完成日期：</span>2017-10-05</span>
                            </div>
                        </div>
                        <div class="weui-form-preview__ft">
                            状态 : <span class="text-red">未确认</span>
                            <a class="weui-btn weui-btn_plain-default full-right" href="javascript:">查看详情</a>
                        </div>
                    </div>
                    <div class="weui-form-preview">
                        <div class="weui-form-preview__bd">
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">项目名称：</span><span class="text-blue">江苏万达广场</span></label>
                                <span class="weui-form-preview__value"><span class="text-gray">业务员：</span>张三</span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">涂装体系：</span>碧彩石系列、外墙乳胶</label>
                                <span class="weui-form-preview__value"></span>
                            </div>
                            <div class="weui-form-preview__item">
                                <label class="weui-form-preview__label"><span class="text-gray">订单时间：</span>2017-08-05 16:28</label>
                                <span class="weui-form-preview__value"><span class="text-gray">预计完成日期：</span>2017-10-05</span>
                            </div>
                        </div>
                        <div class="weui-form-preview__ft">
                            状态 : <span class="text-red">未确认</span>
                            <a class="weui-btn weui-btn_plain-default full-right" href="javascript:">查看详情</a>
                        </div>
                    </div>
                </div>
                <!-- 销售订单END -->
            </div>
        </div>
    </div>
</div>

<?php echo $_smarty_tpl->getSubTemplate ("comm_js.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


<script type="text/javascript">
    $(function(){
        $('.weui-navbar__item').on('click', function () {
            var _this=$(this).index()
            $(this).addClass('weui-bar__item_on').siblings('.weui-bar__item_on').removeClass('weui-bar__item_on');
            $(".weui-tab__content").eq(_this).show().siblings('.weui-tab__content').hide()
        });

        bindCost();
    });

    function detail( code ) {
        location.href = '/wap/orderDtl.html?ajaxFlg=1&code=' + code;
    }
    
    function bindCost() {
        E.ajax_post({
            url : "/wap/order.html?ajaxFlg=1",
            call : function (o) {
                if(o.code == 200){
                    var html = '';
                    $.each(o.data, function (i, v) {
                        html += '<div class="weui-form-preview">';
                        html += '   <div class="weui-form-preview__bd">';
                        html += '       <div class="weui-form-preview__item">';
                        html += '           <label class="weui-form-preview__label"><span class="text-gray">项目名称：</span><span class="text-blue">'+ v['costName'] +'</span></label>';
                        html += '           <span class="weui-form-preview__value"><span class="text-gray">业务员：</span>'+ v['trueName'] +'</span>';
                        html += '       </div>';
                        html += '       <div class="weui-form-preview__item">';
                        html += '           <label class="weui-form-preview__label"><span class="text-gray">涂装体系：</span>'+ v['categoryName'] +'</label>';
                        html += '           <span class="weui-form-preview__value"></span>';
                        html += '       </div>';
                        html += '       <div class="weui-form-preview__item">';
                        html += '           <label class="weui-form-preview__label"><span class="text-gray">报价时间：</span>'+ v['createTime'] +'</label>';
                        html += '           <span class="weui-form-preview__value"><span class="text-gray">报价有效期：</span>'+ v['validDate'] +'</span>';
                        html += '       </div>';
                        html += '   </div>';
                        html += '   <div class="weui-form-preview__ft">';
                        html += '       状态 : <span class="text-red">'+ v['statusName'] +'</span>';
                        html += '       <a class="weui-btn weui-btn_plain-default full-right" href="javascript:detail(\''+ v['costCode'] +'\')">查看详情</a>';
                        html += '   </div>';
                        html += '</div>';
                    });
                    $("#divCost").html(html);
                }
            }
        });
    }
</script>
</body>
</html>
<?php }} ?>
